import {request} from '../request.js'

const loginApi = {
	// 登陆接口
	login(params){
		return request({
		  method: 'Post',
		  url: '/api/uaa/member/login',
		  params: params
		})
	},
	detail(params){
		return request({
		  method: 'Post',
		  url: '/api/uac/front/member/detail',
		  params: params
		})
	},
	// 检查手机号是否被注册
	checkTel(params){
		return request({
		  method: 'Get',
		  url: '/api/uac/passport/checkMobile',
		  params:params
		})
	},
	// 发送验证码
	sendTelMsg(params){
		return request({
		  method: 'Post',
		  url: '/api/uac/passport/sendMsg',
		  params:params
		})
		
	},
	// 注册账号
	registerAccount(params){
		return request({
		  method: 'Post',
		  url: '/api/uac/passport/register',
		  params:params
		})
	},
	// 检验代理商
	checkAgentBind(){
		return request({
		  method: 'Get',
		  url: '/api/cms/cfg/common/checkRegistAgentBind'
		  
		})
		
	},
	getImgCode(params){
		return request({
		  method: 'Post',
		  url: '/api/uaa/auth/captcha',
		  params:params
		})
		
	},
	// resetPwdByMobile 根据手机号重置密码
	resetPwdByMobile(params){
		return request({
		  method: 'Post',
		  url: '/api/uac/passport/resetPwdByMobile',
		  params:params
		})
		
	},
	resetPwd(params){
		return request({
		  method: 'Post',
		  url: '/api/uac/passport/resetPwd',
		  params:params
		})
		
	},
	setMobile(params){
		return request({
		  method: 'Post',
		  url: '/api/uac/front/member/setMobile',
		  params:params
		})
		
	}
}


export default loginApi